package com.cxs.musicplaywidget.data;

import ohos.utils.zson.ZSONArray;

/**
 * @ClassName PlayerData
 * @Author cxs
 * @Version 1.0
 * @Description TODO
 * @Date 2022/03/08
 */
public class PlayerControl {
    boolean connected = false;
    boolean isPlaying = false;
    boolean waiting = false;
    int currentPlayIndex = 0;

    public PlayerControl() {
    }

    public PlayerControl(boolean connected) {
        this.connected = connected;
    }

    public PlayerControl(boolean connected, boolean waiting) {
        this.connected = connected;
        this.waiting = waiting;
    }

    public boolean isConnected() {
        return connected;
    }

    public void setConnected(boolean connected) {
        this.connected = connected;
    }

    public boolean isPlaying() {
        return isPlaying;
    }

    public void setPlaying(boolean playing) {
        isPlaying = playing;
    }

    public boolean isWaiting() {
        return waiting;
    }

    public void setWaiting(boolean waiting) {
        this.waiting = waiting;
    }

    public int getCurrentPlayIndex() {
        return currentPlayIndex;
    }

    public void setCurrentPlayIndex(int currentPlayIndex) {
        this.currentPlayIndex = currentPlayIndex;
    }

    @Override
    public String toString() {
        return "ControllData{" +
                "connected=" + connected +
                ", isPlaying=" + isPlaying +
                ", waiting=" + waiting +
                ", currentPlayIndex=" + currentPlayIndex +
                '}';
    }
}
